﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %> 
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="StampDocumentEditor.ascx.cs" Inherits="T2V.SharePoint.Workflow.Controls.StampDocumentEditor" %>

<%@ Register Tagprefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="~/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="~/_controltemplates/ButtonSection.ascx" %>

<style type="text/css">
    .rblFormat td label
    {
        padding: 0 15px 0 5px;
    }
</style>

<wssawc:FormDigest runat="server" id="FormDigest" />
<div style="color:red" id="errorMessageHolder" enableviewstate="false" runat="server"></div>
<script type="text/javascript">        
		function <%=chkRemoveAction.ClientID%>_click(control){
            ValidatorEnable(document.getElementById('<%=InputFormRequiredFieldValidator1.ClientID%>'),!control.checked);
			ValidatorEnable(document.getElementById('<%=InputFormRequiredFieldValidator2.ClientID%>'),!control.checked);
		}
</script>
<TABLE border="0" width="95%" cellspacing="0" cellpadding="0" class="ms-formtable" >
	<wssuc:InputFormSection ID="InputFormSection1" runat="server" Title="Stamp document">
		<Template_Description>
			<SharePoint:EncodedLiteral ID="EncodedLiteral1" runat="server" text="Use this action to stamp the attachment document in current item or this document." EncodeMethod='HtmlEncode'/>
		</Template_Description>
		<Template_InputFormControls>
		
			<wssuc:InputFormControl ID="InputFormControl1" runat="server" LabelText="Enable stamp document">
				<Template_Control>

					<asp:CheckBox runat="server"  ID="chkEnableStampDocument"/>

				</Template_Control>
			</wssuc:InputFormControl>

			<wssuc:InputFormControl ID="InputFormControl2" runat="server" LabelText="Stamp icon">
				<Template_Control>
					<asp:TextBox runat="server" id="txtStampIconUrl" CssClass="ms-long"/>
					 <wssawc:InputFormRequiredFieldValidator ID="InputFormRequiredFieldValidator2" 
															ControlToValidate="txtStampIconUrl"
															Display="Dynamic" 
															ErrorMessage="Please enter the url to stamp icon" 
															Runat="server"
															ValidationGroup="SubmitValidate"/>
				</Template_Control>
			</wssuc:InputFormControl>

			<wssuc:InputFormControl ID="InputFormControl3" runat="server" LabelText="Destination">
				<Template_Control>
                    <asp:RadioButtonList ID="rblDestinationType" runat="server" RepeatDirection="Horizontal">
                    </asp:RadioButtonList>
                    <br />
					<asp:TextBox runat="server" id="txtDestinationUrl" CssClass="ms-long"/>
					 <wssawc:InputFormRequiredFieldValidator ID="InputFormRequiredFieldValidator1" 
															ControlToValidate="txtDestinationUrl"
															Display="Dynamic" 
															ErrorMessage="Please enter the url to document library" 
															Runat="server"
															ValidationGroup="SubmitValidate"/>
				</Template_Control>
			</wssuc:InputFormControl>

			<wssuc:InputFormControl ID="InputFormControl4" runat="server">
				<Template_Control>
					<asp:CheckBox ID="chkRemoveAction" Text="Remove this action" runat="server" />
				</Template_Control>
			</wssuc:InputFormControl>

		</Template_InputFormControls>
	</wssuc:InputFormSection>
</TABLE>
<asp:Literal ID="ltrScript" runat="server"/>